<fieldset class="load-fieldset">
	<label class="labeltabledata">รายการอาหาร</label>
	<table border="1px solid #666;">
    	<thead>
        	<tr>
            	<th>ชื่ออาหาร</th>
                <th>ประเภทอาหาร</th>
                <!--<th>ความเหมาะสม</th>-->
                <th>แก้ไข</th>
                <th>ลบ</th>
            </tr>
        </thead>
        <tbody>
        	<?php
			require_once('../config.ini.php');
			$sql="SELECT foodid, foodname, foodcategoryid, categoryname FROM food left join foodcategory on food.foodcategoryid = foodcategory.categoryid where food.status = '1' ORDER BY foodid DESC ";
			$result=mysql_query($sql);
			while($row=mysql_fetch_array($result)){
			?>
        	<tr>
            	<td><?php echo $row['1']; ?></td>
                <td><?php echo $row['3']; ?></td>
                <!--<td class="td-picture"><a href="#" onclick="loadUrl('editdisfood.php?diseaseid=')"><img width="24px;" height="24px;"  src="../images/chain.png" /></a></td>-->
                <td class="td-edit"><a href="#" onclick="listfood(<?php echo $row["0"]; ?>)"><img width="24px;" height="24px;"  src="../images/Edit_48.png" /></a></td>
                <td class="td-del"><a href="#" onclick="deleteitem('delfood',<?php echo $row["0"]; ?>,'food.php')"><img  width="24px;" height="24px;" src="../images/delete-48.png" /></a></td>
            </tr>
            <?php
			}
			mysql_free_result($result);
			?>
        </tbody>
    </table>
</fieldset>